﻿using Coldairarrow.Util;
using Furion;
using SqlSugar;
using System;

namespace Admin.Core
{
    /// <summary>
    /// 角色表
    /// </summary>
    [SugarTable("Base_Role")]
    public partial class BaseRole : SugarEntity<string>
    {
        public BaseRole()
        {
            Id = IdHelper.GetId();
            CreatorId = App.User.FindFirst("UserId")?.Value;
            CreatedTime = DateTime.Now;
            IsDeleted = false;
            IsSuper = false;
            IsEnabled = true;
        }
        /// <summary>
        /// 角色名称
        /// </summary>
        public String Name { get; set; }

        /// <summary>
        /// 角色描述
        /// </summary>
        public String Remark { get; set; }

        /// <summary>
        /// 是否超级管理员 默认否
        /// </summary>
        public bool IsSuper { get; set; }

        /// <summary>
        /// 是否启用
        /// </summary>
        public bool IsEnabled { get; set; }
    }
}
